package sg.edu.nus.iss.team8s.vmcs.builder;

import java.awt.Button;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Label;
import java.awt.Panel;
import java.awt.TextField;

import sg.edu.nus.iss.team8s.vmcs.cache.CashStore;
import sg.edu.nus.iss.team8s.vmcs.cache.DrinksStore;
import sg.edu.nus.iss.team8s.vmcs.commons.Constant;
/**
 * 
 * @author Zhou Hui
 *
 */
public class MaintenancePanel extends Panel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public Panel getTitlePanel() {
		return titlePanel;
	}

	public Panel getInputPanel() {
		return inputPanel;
	}

	public Panel getDisplayPanel() {
		return displayPanel;
	}

	public Panel getStatusPanel() {
		return statusPanel;
	}
	private Panel titlePanel;
	private Panel inputPanel;
	private Panel displayPanel;
	private Panel statusPanel;
	
	private Button fiveCent;
	private Button tenCent;
	private Button twentyCent;
	private Button fiftyCent;
	private Button oneDollar;
	private Button showCashButton;
	private Button collectCashButton;
	private Button finishButton;
	
	private Label labelFiveCent;
	private Label labelTenCent;
	private Label labelTwentyCent;
	private Label labelFiftyCent;
	private Label labelOneDollar;
	private Label showCashLabel;
	private Label collectCashLabel;
	
	private TextField password;
	private TextField brandPrice;
	
	private Label validPassword;
	private Label invalidPassword;
	
	private Button[] brands;
	private Label[] prices;
	/**
	 * @param titlePanel the titlePanel to set
	 */
	
	public MaintenancePanel(){
		FlowLayout layout = new FlowLayout();
		layout.setVgap(0);
		this.setLayout(layout);
		this.setPreferredSize(new Dimension(Constant.PANEL_WIDTH, 740));
	}
	
	public void drinksStoreChange(){
		DrinksStore drinksStore = DrinksStore.getInstance();
		for(int id=0; id<drinksStore.getStoreSize();id++){
			drinksStore.getItem(id);
			//refresh the drinks part of the panel with each StoreItem returned
		}
	}
	
	public void cashStoreChange(){
		CashStore cashStore = CashStore.getInstance();
		for(int id=0; id<cashStore.getStoreSize();id++){
			cashStore.getItem(id);
			//refresh the cash part of the panel with each StoreItem returned
		}
	}
	
	public void setTitlePanel(Panel titlePanel) {
		this.titlePanel = titlePanel;
	}
	
	public void setInputPanel(Panel inputPanel) {
		this.inputPanel = inputPanel;
	}
	
	public void setDisplayPanel(Panel displayPanel) {
		this.displayPanel = displayPanel;
	}
	
	public void setStatusPanel(Panel statusPanel) {
		this.statusPanel = statusPanel;
	}
	
	public Button getFiveCent() {
		return fiveCent;
	}
	public void setFiveCent(Button fiveCent) {
		this.fiveCent = fiveCent;
	}
	public Button getTenCent() {
		return tenCent;
	}
	public void setTenCent(Button tenCent) {
		this.tenCent = tenCent;
	}
	public Button getTwentyCent() {
		return twentyCent;
	}
	public void setTwentyCent(Button twentyCent) {
		this.twentyCent = twentyCent;
	}
	public Button getFiftyCent() {
		return fiftyCent;
	}
	public void setFiftyCent(Button fiftyCent) {
		this.fiftyCent = fiftyCent;
	}
	public Button getOneDollar() {
		return oneDollar;
	}
	public void setOneDollar(Button oneDollar) {
		this.oneDollar = oneDollar;
	}
	
	public TextField getPassword() {
		return this.password;
	}
	public void setPassword(TextField password) {
		this.password = password;
	}
	
	public Label getValidPassword() {
		return this.validPassword;
	}
	public void setValidPassword(Label validPassword) {
		this.validPassword = validPassword;
	}
	
	public Label getInvalidPassword() {
		return this.invalidPassword;
	}
	public void setInvalidPassword(Label invalidPassword) {
		this.invalidPassword = invalidPassword;
	}
	
	public Label getLabelFiveCent() {
		return this.labelFiveCent;
	}
	public void setLabelFiveCent(Label labelFiveCent) {
		this.labelFiveCent = labelFiveCent;
	}
	
	public Label getLabelTenCent() {
		return this.labelTenCent;
	}
	public void setLabelTenCent(Label labelTenCent) {
		this.labelTenCent = labelTenCent;
	}
	
	public Label getLabelTwentyCent() {
		return this.labelTwentyCent;
	}
	public void setLabelTwentyCent(Label labelTwentyCent) {
		this.labelTwentyCent = labelTwentyCent;
	}
	
	public Label getLabelFiftyCent() {
		return this.labelFiftyCent;
	}
	public void setLabelFiftyCent(Label labelFiftyCent) {
		this.labelFiftyCent = labelFiftyCent;
	}
	
	public Label getLabelOneDollar() {
		return this.labelOneDollar;
	}
	public void setLabelOneDollar(Label labelOneDollar) {
		this.labelOneDollar = labelOneDollar;
	}
	
	public Button[] getBrands() {
		return brands;
	}
	public void setBrands(Button[] brands) {
		this.brands = brands;
	}	
	
	public Label[] getPrices() {
		return prices;
	}
	public void setPrices(Label[] prices) {
		this.prices = prices;
	}
	
	public TextField getBrandPrice() {
		return this.brandPrice;
	}
	public void setBrandPrice (TextField brandPrice) {
		this.brandPrice = brandPrice;
	}
	
	public Button getShowCashButton() {
		return showCashButton;
	}
	public void setShowCashButton(Button showCashButton) {
		this.showCashButton = showCashButton;
	}
	
	public Button getCollectCashButton() {
		return collectCashButton;
	}
	public void setCollectCashButton(Button collectCashButton) {
		this.collectCashButton = collectCashButton;
	}
	
	public Button getFinishButton() {
		return finishButton;
	}
	public void setFinishButton(Button finishButton) {
		this.finishButton = finishButton;
	}
	
	public Label getShowCashLabel() {
		return showCashLabel;
	}
	public void setShowCashLabel(Label showCashLabel) {
		this.showCashLabel = showCashLabel;
	}
	
	public Label getCollectCashLabel() {
		return collectCashLabel;
	}
	public void setCollectCashLabel(Label collectCashLabel) {
		this.collectCashLabel = collectCashLabel;
	}
}
